<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
</head>

<body>
    <script>
        let person = {
            name: "张三",
            age: 25,
            address: "深圳",
            getName: function() {},
        };
        Object.keys(person).map((key) => {
            console.log(person[key]); // 获取到属性对应的值，做一些处理
        });

        let str = "Object.keys你好"
        console.log(Object.keys(str));
    </script>
</body>

</html>